<%-- 
    Document   : Conferences
    Created on : Nov 22, 2012, 1:01:01 AM
    Author     : Gary
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="/struts-tags" prefix="s" %>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link href="<c:url value='/css/main.css'/>" rel="stylesheet" type="text/css"/>
        <title>Conferences</title>
    </head>
    <body>
        <h1>Conference List</h1>
        <a href="<s:url namespace="/conference" action="create_newconference" />"><b>New Conference</b></a><br/><br/>
       <table class="borderAll">
            <tr>
                <th><s:text name="Name"/></th>
                <th><s:text name="Event"/></th>
                <th><s:text name="Location"/></th>
                <th><s:text name="Price"/></th>
                <th>Action</th>
            </tr>
            <s:iterator value="conferences">
                <tr class="<s:if test="#stat.odd == true">odd</s:if><s:else>even</s:else>">
                    <td><s:property value="conferenceName"/></td>
                    <td><s:property value="eventDetail"/></td>
                    <td><s:property value="locatoin"/></td>
                    <td><s:property value="price"/></td>
                    <td class="nowrap">
                        <a href="<s:url namespace="/conference" action="edit_%{conferenceName}" />"><b>Edit</b></a>
                        &nbsp;&nbsp;&nbsp;
                        <a href="<s:url namespace="/item" action="list_%{conferenceName}" />"><b>Items</b></a>
                        &nbsp;&nbsp;&nbsp;
                         <a href="<s:url namespace="/conference" action="partificate_%{conferenceName}" />" ><b>Participates</b></a>
                    </td>
                </tr>
            </s:iterator>
        </table>
    </body>
</html>
